home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-06-16 | 1.1 KB | 48 lines | [TEXT/MSET] |
- \ Assembler constants, values etc.
-
-
- 0 value OPFMT \ the format of the operation being compiled
- 1 value PASS
- 0 value KEEPHERE
-
- 12 constant CCR-TYPE \ mode constants indicate special registers
- 14 constant SR-TYPE
- 13 constant USP-TYPE
-
- 4 constant EOL \ indicates tokenType end-of-line
-
- objHandle TEMPH
-
- \ Addressing modes - we'll try to shift over to these symbolic names
- \ by degrees:
-
- type{ DnMode AnMode (An)Mode (An)+Mode -(An)Mode AnRelMode
- IndexMode ShortAbsMode LongAbsMode
- PCrelMode PCindexMode ImmedMode
- CCRmode USPmode SRmode FPnMode FPctlRegMode
- DicMode }
-
- \ Operation formats:
-
- type{ Bfmt Wfmt Lfmt Sfmt Dfmt Xfmt Pfmt }
-
-
- : binary 2 -> base ;
-
- binary
-
- 0100000011000000 value sr>-code \ opcodes for various special move
- 0100011011000000 value >sr-code \ instructions
- 0100111001100000 value usp-code
- 0100001011000000 value ccr>-code
- 0100010011000000 value >ccr-code
-
- decimal
-
- 0 value codePos \ #bytes in instruction so far
-
- 0 value errFlag \ indicates that a serious error has occurred in
- \ compilation
-
- variable asmbuf 128 allot \ sets up a 128 byte buffer
-